package com.bjpowernode.constant;

/**
 * 常量类
 */
public class Constants {

    //验证码的名称
    public static final String CAPTCHA = "captcha";

    //登录处理地址
    public static final String LOGIN_URI = "/api/login";

    //jwt签名密钥
    public static final String JWT_SECRET = "w30dke(LW1wrs>w3nas54pT";

    //登录的用户jwt负载中的键名
    public static final String LOGIN_USER = "loginUser";

    //jwt:user:login:2308  --> sdyjfgsdfhshjfhsjdfhjs
    //jwt:user:login:2309  --> durfyweirtiuehtiuheitu
    public static final String REDIS_LOGIN_JWT_KEY = "crm:user:login:";

    //负责人缓存key
    public static final String REDIS_OWNER_KEY = "crm:activity:owner";

    //市场活动缓存key
    public static final String REDIS_ACTIVITY_KEY = "crm:clue:activity";

    public static final String REDIS_DIC_VALUE_KEY = "crm:dic:";

    //jwt过期时间：7天
    public static final Long EXPIRE_TIME = 7*24*60L;

    //jwt过期时间：30分钟
    public static final Long DEFAULT_EXPIRE_TIME = 30L;

    //分页时每页显示10条数据
    public static final int PAGE_SIZE = 10;

    //下拉选项数据的缓存失效时间，3分钟
    public static final Long OPTIONS_EXPIRE_TIME = 3L;
    public static final Long OWNER_EXPIRE_TIME = 30L;
    //导出Excel的uri路径
    public static final String EXPORT_EXCEL_URI = "/api/exportExcel";
    public static final String EMPTY ="";
}
